package com.xingkeduo.pojo.query;

import com.xingkeduo.util.pojo.base.BaseQuery;
import com.xingkeduo.util.pojo.enums.YesNoEnum;
import org.apache.ibatis.type.Alias;

import java.util.List;

/**
 * 一线员工工作属性查询类
 * 
 * @author 高杰
 * @time 2018年12月25日 下午5:04:57
 * @description
 */
@Alias("CraftsmanJobQO")
public class CraftsmanJobQO extends BaseQuery<CraftsmanJobQO> {

	private long levelId;
	private long dutyId;
	private long shopId;
	private long cityId;
	private List<Long> shopIds;
	private List<Long> ids;

	private String nickName;

	private String inTime;

	private String gradTime;

	private String formalTime;

	private String leaveTime;

	private long companyId;

	public String getLeaveTime() {
		return leaveTime;
	}

	public CraftsmanJobQO setLeaveTime(String leaveTime) {
		this.leaveTime = leaveTime;
		return this;
	}

	public String getInTime() {
		return inTime;
	}

	public CraftsmanJobQO setInTime(String inTime) {
		this.inTime = inTime;
		return this;
	}

	public String getGradTime() {
		return gradTime;
	}

	public CraftsmanJobQO setGradTime(String gradTime) {
		this.gradTime = gradTime;
		return this;
	}

	public String getFormalTime() {
		return formalTime;
	}

	public CraftsmanJobQO setFormalTime(String formalTime) {
		this.formalTime = formalTime;
		return this;
	}

	public String getNickName() {
		return nickName;
	}

	public CraftsmanJobQO setNickName(String nickName) {
		this.nickName = nickName;
		return this;
	}

	/*
         1在职 2待复试 3已复试
         * @author : gaozifeng
         * @date : 2019/3/4 16:54
        */
	private int ConditionType;

	private YesNoEnum isDelete;

	public YesNoEnum getIsDelete() {
		return isDelete;
	}

	public CraftsmanJobQO setIsDelete(YesNoEnum isDelete) {
		this.isDelete = isDelete;
		return this;
	}

	public int getConditionType() {
		return ConditionType;
	}

	public CraftsmanJobQO setConditionType(int ConditionType) {
		this.ConditionType = ConditionType;
		return this;
	}

	public List<Long> getIds() {
		return ids;
	}

	public CraftsmanJobQO setIds(List<Long> ids) {
		this.ids = ids;
		return this;
	}

	public long getLevelId() {
		return levelId;
	}

	public CraftsmanJobQO setLevelId(long levelId) {
		this.levelId = levelId;
		return this;
	}

	public long getDutyId() {
		return dutyId;
	}

	public CraftsmanJobQO setDutyId(long dutyId) {
		this.dutyId = dutyId;
		return this;
	}

	public long getShopId() {
		return shopId;
	}

	public CraftsmanJobQO setShopId(long shopId) {
		this.shopId = shopId;
		return this;
	}

	public long getCityId() {
		return cityId;
	}

	public CraftsmanJobQO setCityId(long cityId) {
		this.cityId = cityId;
		return this;
	}

	public List<Long> getShopIds() {
		return shopIds;
	}

	public CraftsmanJobQO setShopIds(List<Long> shopIds) {
		this.shopIds = shopIds;
		return this;
	}

	public long getCompanyId() {
		return companyId;
	}

	public CraftsmanJobQO setCompanyId(long companyId) {
		this.companyId = companyId;
		return this;
	}

	public boolean isEmpty() {
		if (!isSuperEmpty() || cityId != 0 || shopId>0L)
			return false;

		return true;
	}

}
